import type { Recordable } from '@vben/types';
import { requestClient } from '#/api/request';

export async function list(data) {
  return requestClient.post('/user/role/list', data);
}

export async function add(data) {
  return requestClient.post('/user/role/add', data);
}

export async function edit(data) {
  return requestClient.post('/user/role/edit', data);
}

export async function deleteId(data) {
  return requestClient.post('/user/role/delete', data);
}

export async function getRoleById(data) {
  return requestClient.post('/user/role/getRoleById', data);
}

export async function getStartingRole(data) {
  return requestClient.post('/user/role/getStartingRole', data);
}
